import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/home/index'
import ShoppingPack from '@/components/user/shopping_pack'
import productDetail from '@/components/product/product_detail'
import OrderConfirm from '@/components/product/order_confirm'
import Address from '@/components/user/address'
import AddressEdit from '@/components/user/address_edit'
import OrderList from '@/components/user/order_list'
import Favorite from '@/components/user/favorite'
import Message from '@/components/user/message'
import Profile from '@/components/user/profile'
Vue.use(Router)

export default new Router({
  routes: [
	{
	  path: '/',
	  name: 'index',
	  component: Index
	},
	{
	  path: '/shopping-pack',
	  name: 'shopping-pack',
	  component: ShoppingPack
	},
	{
	  path: '/product-detail',
	  name: 'product-detail',
	  component: productDetail
	},
	{
	  path: '/order-confirm',
	  name: 'order-confirm',
	  component: OrderConfirm
	},
	{
	  path: '/address',
	  name: 'address',
	  component: Address
	},
	{
	  path: '/address-edit',
	  name: 'address-edit',
	  component: AddressEdit
	},
	{
	  path: '/order-list',
	  name: 'order-list',
	  component: OrderList
	},
	{
	  path: '/favorite',
	  name: 'favorite',
	  component: Favorite
	},
	{
	  path: '/message',
	  name: 'message',
	  component: Message
	},
	  {
		  path: '/profile',
		  name: 'profile',
		  component: Profile
	  }
  ]
})
